#ifndef _MY_TIME_H_
#define _MY_TIME_H_

#include "stdint.h"

struct rtc_time
{
	int tm_sec;
	int tm_min;
	int tm_hour;
	int tm_mday;
	int tm_mon;
	int tm_year;
	int tm_wday;
};

uint32_t mktimev(struct rtc_time *tm);
void to_tm(uint32_t tim, struct rtc_time *tm);

#endif
